#ifndef ERROR_CODE_H
#define ERROR_CODE_H

#define ERROR_CODE_FINISHED             1
#define ERROR_CODE_OK                   0
#define	ERROR_CODE_ALREADY_EXISTS       -1
#define	ERROR_CODE_ILLEGAL_ARGUMENT     -2
#define	ERROR_CODE_IOERROR              -3
#define ERROR_CODE_JSON_INVALID         -4
#define ERROR_CODE_SOCKET_CLOSED        -5
#define ERROR_CODE_SERVER_BUSY			-6
#define ERROR_CODE_UNKNOWN_COMMAND      -7
#define ERROR_CODE_EMPTY                -8
#define ERROR_CODE_NOT_OPENED           -9
#define ERROR_CODE_INVALID_SCHEMA       -10
#define ERROR_CODE_DATA_STATUS_UNKNOWN  -11
#define ERROR_CODE_TABLE_NOT_EXIST      -12
#define ERROR_CODE_AUTH                 -13
#define ERROR_CODE_AGAIN                -14
#define ERROR_CODE_INTERNAL             -15
#define ERROR_CODE_NOT_IMPLEMENT        -16
#define ERROR_CODE_RETRY_LATER          -17
#define ERROR_CODE_DATA_CORRUPT         -18

#endif
